package src.lab02.test12;

/**
 * Created by 林云志 on 2017/10/20.
 */
public class Rectangular extends Shape{
    //属性：宽和高
    double width;
   double height;

    //ctrl + o重写
    @Override
    double area() {
        return width*height;
    }

    @Override
    double perimerter() {
        return 2*(width+height);
    }

}
